package com.easyidea.its.exception;

import com.infowarelab.common.exception.MessageKey;


public class BaseException extends Exception {
	private static final long serialVersionUID = 184016467402447428L;

	private MessageKey key;

	public BaseException(MessageKey key) {
		super(key.toString());
		this.key = key;
	}

	public BaseException(MessageKey key, Throwable cause) {
		super(key.toString(), cause);
		this.key = key;
	}

	public MessageKey getMessageKey() {
		return key;
	}
	public BaseException(String message,
			Throwable cause) {
		super(message, cause);
	}
	public BaseException(Throwable cause) {
		super(cause);
	}

	public BaseException(String message) {
		super(message);
	}

	public BaseException(String message, MessageKey key) {
		super(message);
		this.key = key;
	}

	public BaseException(String message, MessageKey key,
			Throwable cause) {
		super(message, cause);
		this.key = key;
	}

}
